import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from 'typeorm';

@Entity('nest_login')
export class Login {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  userId: number;

  @Column('varchar')
  username: string;

  @Column('varchar')
  extra: string;

  @CreateDateColumn()
  createdAt: Date;
}
